<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        var  o = new Object;
        function Father(uname,sex,age){
            this.name = uname;
            this.sex = sex;
            this.age = age;
        }
        function Son (uname,sex,age){
            Father.call(this,uname,sex,age);
        }
        var son = new Son('刘德华', 18, '男');
        console.log(son);
    </script>
</body>
</html>